home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume27 / dmake / part28 < prev    next >
Encoding:
Text File  |  1992-01-29  |  40.4 KB  |  1,191 lines

  1. Newsgroups: comp.sources.misc
  2. From: dvadura@plg.waterloo.edu (Dennis Vadura)
  3. Subject:  v27i129:  dmake - dmake Version 3.8, Part28/41
  4. Message-ID: <1992Jan28.214837.20083@sparky.imd.sterling.com>
  5. X-Md4-Signature: 228e26a883f43611c771f9473b97c02b
  6. Date: Tue, 28 Jan 1992 21:48:37 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: dvadura@plg.waterloo.edu (Dennis Vadura)
  10. Posting-number: Volume 27, Issue 129
  11. Archive-name: dmake/part28
  12. Environment: Atari-ST, Coherent, Mac, MSDOS, OS/2, UNIX
  13. Supersedes: dmake: Volume 19, Issue 22-58
  14.  
  15. ---- Cut Here and feed the following to sh ----
  16. # this is dmake.shar.28 (part 28 of a multipart archive)
  17. # do not concatenate these parts, unpack them in order with /bin/sh
  18. # file dmake/os2/ibm/public.h continued
  19. #
  20. if test ! -r _shar_seq_.tmp; then
  21.     echo 'Please unpack part 1 first!'
  22.     exit 1
  23. fi
  24. (read Scheck
  25.  if test "$Scheck" != 28; then
  26.     echo Please unpack part "$Scheck" next!
  27.     exit 1
  28.  else
  29.     exit 0
  30.  fi
  31. ) < _shar_seq_.tmp || exit 1
  32. if test -f _shar_wnt_.tmp; then
  33. sed 's/^X//' << 'SHAR_EOF' >> 'dmake/os2/ibm/public.h' &&
  34. void Open_temp_error ANSI((char *, char *));
  35. void Link_temp ANSI((CELLPTR, FILE *, char *));
  36. void Close_temp ANSI((CELLPTR, FILE *));
  37. void Unlink_temp_files ANSI((CELLPTR));
  38. void Handle_result ANSI((int, int, int, CELLPTR));
  39. void Update_time_stamp ANSI((CELLPTR));
  40. int Remove_file ANSI((char *));
  41. void Parse ANSI((FILE *));
  42. int Get_line ANSI((char *, FILE *));
  43. char * Do_comment ANSI((char *, char **, int));
  44. char * Get_token ANSI((TKSTRPTR, char *, int));
  45. void Quit ANSI(());
  46. void Read_state ANSI(());
  47. void Write_state ANSI(());
  48. int Check_state ANSI((CELLPTR, STRINGPTR *, int));
  49. char* basename ANSI((char *));
  50. void Dump ANSI(());
  51. void Dump_recipe ANSI((STRINGPTR));
  52. int Parse_macro ANSI((char *, int));
  53. int Macro_op ANSI((char *));
  54. int Parse_rule_def ANSI((int *));
  55. int Rule_op ANSI((char *));
  56. void Add_recipe_to_list ANSI((char *, int, int));
  57. void Bind_rules_to_targets ANSI((int));
  58. int Set_group_attributes ANSI((char *));
  59. DFALINKPTR Match_dfa ANSI((char *));
  60. void Check_circle_dfa ANSI(());
  61. void Add_nfa ANSI((char *));
  62. char * Exec_function ANSI((char *));
  63. int runargv ANSI((CELLPTR, int, int, int, int, char *));
  64. void SetSessionTitle ANSI(());
  65. int Wait_for_child ANSI((int, int));
  66. void Clean_up_processes ANSI(());
  67. int _chdir ANSI((char *));
  68. int If_root_path ANSI((char *));
  69. time_t seek_arch ANSI((char*, char*));
  70. int touch_arch ANSI((char*, char*));
  71. void Remove_prq ANSI((CELLPTR));
  72. X
  73. #endif
  74. SHAR_EOF
  75. chmod 0640 dmake/os2/ibm/public.h ||
  76. echo 'restore of dmake/os2/ibm/public.h failed'
  77. Wc_c="`wc -c < 'dmake/os2/ibm/public.h'`"
  78. test 5541 -eq "$Wc_c" ||
  79.     echo 'dmake/os2/ibm/public.h: original size 5541, current size' "$Wc_c"
  80. rm -f _shar_wnt_.tmp
  81. fi
  82. # ============= dmake/os2/ibm/startup.mk ==============
  83. if test -f 'dmake/os2/ibm/startup.mk' -a X"$1" != X"-c"; then
  84.     echo 'x - skipping dmake/os2/ibm/startup.mk (File already exists)'
  85.     rm -f _shar_wnt_.tmp
  86. else
  87. > _shar_wnt_.tmp
  88. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/startup.mk' &&
  89. #NOTE:  startup.mk file is called dmake.ini for OS/2
  90. #       and is found in os2/mscdos/dmake.ini
  91. .INCLUDE : "os2/mscdos/dmake.ini"
  92. SHAR_EOF
  93. chmod 0640 dmake/os2/ibm/startup.mk ||
  94. echo 'restore of dmake/os2/ibm/startup.mk failed'
  95. Wc_c="`wc -c < 'dmake/os2/ibm/startup.mk'`"
  96. test 132 -eq "$Wc_c" ||
  97.     echo 'dmake/os2/ibm/startup.mk: original size 132, current size' "$Wc_c"
  98. rm -f _shar_wnt_.tmp
  99. fi
  100. # ============= dmake/os2/ibm/tempnam.c ==============
  101. if test -f 'dmake/os2/ibm/tempnam.c' -a X"$1" != X"-c"; then
  102.     echo 'x - skipping dmake/os2/ibm/tempnam.c (File already exists)'
  103.     rm -f _shar_wnt_.tmp
  104. else
  105. > _shar_wnt_.tmp
  106. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/ibm/tempnam.c' &&
  107. /*LINTLIBRARY*/
  108. #include <stdio.h>
  109. #include <string.h>
  110. #include <stdlib.h>
  111. #include <dos.h>
  112. X
  113. #if defined(max)
  114. #   undef  max
  115. #endif
  116. #define max(A,B) (((A)<(B))?(B):(A))
  117. X
  118. extern int access();
  119. int _access();
  120. X
  121. /* MSC stdio.h defines P_tmpdir, so let's undo it here */
  122. /* Under DOS leave the default tmpdir pointing here!        */
  123. #ifdef P_tmpdir
  124. #undef P_tmpdir
  125. #endif
  126. static char *P_tmpdir = "";
  127. X
  128. char *
  129. tempnam(dir, prefix)
  130. char *dir;        /* use this directory please (if non-NULL) */
  131. char *prefix;        /* use this (if non-NULL) as filename prefix */
  132. {
  133. X   static         int count = 0;
  134. X   register char *p, *q, *tmpdir;
  135. X   int            tl=0, dl=0, pl;
  136. X   char          buf[30];
  137. X
  138. X   pl = strlen(P_tmpdir);
  139. X
  140. X   if( (tmpdir = getenv("TMPDIR")) != NULL )
  141. X      tl = strlen(tmpdir);
  142. X   else if( (tmpdir = getenv("TMP")) != NULL )
  143. X      tl = strlen(tmpdir);
  144. X   if( dir != NULL ) dl = strlen(dir);
  145. X
  146. X   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
  147. X     return(NULL);
  148. X
  149. X   *p = '\0';
  150. X
  151. X   if( (tl == 0) || (_access( strcpy(p, tmpdir), 0) != 0) )
  152. X     if( (dl == 0) || (_access( strcpy(p, dir), 0) != 0) )
  153. X    if( _access( strcpy(p, P_tmpdir), 0) != 0 )
  154. X       if( !prefix )
  155. X          prefix = "tp";
  156. X
  157. X   if(prefix)
  158. X   {
  159. X      *(p+strlen(p)+2) = '\0';
  160. X      (void)strncat(p, prefix, 2);
  161. X   }
  162. X
  163. #ifdef OS2
  164. X   sprintf( buf, "%08x", getpid() );
  165. #else
  166. X   sprintf( buf, "%08x", _psp );
  167. #endif
  168. X   buf[6]='\0';
  169. X   (void)strcat(p, buf );
  170. X   sprintf( buf, "%04d", count++ );
  171. X   q=p+strlen(p)-6;
  172. X   *q++ = buf[0]; *q++ = buf[1];
  173. X   *q++ = buf[2]; *q++ = buf[3];
  174. X
  175. X   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
  176. X
  177. X   return strlwr(p);
  178. }
  179. X
  180. X
  181. X
  182. _access( name, flag )
  183. char *name;
  184. int  flag;
  185. {
  186. X   char *p;
  187. X   int r;
  188. X
  189. X   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
  190. X   p = name+strlen(name)-1;
  191. X   if(*p == ':' ) strcat( p++, "\\" );
  192. X   r = access( name, flag );
  193. X   if(*p != '/' && *p != '\\') strcat( p, "\\" );
  194. X
  195. X   return( r );
  196. }
  197. SHAR_EOF
  198. chmod 0640 dmake/os2/ibm/tempnam.c ||
  199. echo 'restore of dmake/os2/ibm/tempnam.c failed'
  200. Wc_c="`wc -c < 'dmake/os2/ibm/tempnam.c'`"
  201. test 1919 -eq "$Wc_c" ||
  202.     echo 'dmake/os2/ibm/tempnam.c: original size 1919, current size' "$Wc_c"
  203. rm -f _shar_wnt_.tmp
  204. fi
  205. # ============= dmake/os2/mscdos/config.h ==============
  206. if test ! -d 'dmake/os2/mscdos'; then
  207.     mkdir 'dmake/os2/mscdos'
  208. fi
  209. if test -f 'dmake/os2/mscdos/config.h' -a X"$1" != X"-c"; then
  210.     echo 'x - skipping dmake/os2/mscdos/config.h (File already exists)'
  211.     rm -f _shar_wnt_.tmp
  212. else
  213. > _shar_wnt_.tmp
  214. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/config.h' &&
  215. /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/os2/mscdos/config.h,v 1.1 1992/01/24 03:29:25 dvadura Exp $
  216. -- SYNOPSIS -- Configurarion include file.
  217. -- 
  218. -- DESCRIPTION
  219. --     There is one of these for each specific machine configuration.
  220. --    It can be used to further tweek the machine specific sources
  221. --    so that they compile.
  222. --
  223. -- AUTHOR
  224. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  225. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  226. --
  227. -- COPYRIGHT
  228. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  229. -- 
  230. --      This program is free software; you can redistribute it and/or
  231. --      modify it under the terms of the GNU General Public License
  232. --      (version 1), as published by the Free Software Foundation, and
  233. --      found in the file 'LICENSE' included with this distribution.
  234. -- 
  235. --      This program is distributed in the hope that it will be useful,
  236. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  237. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  238. --      GNU General Public License for more details.
  239. -- 
  240. --      You should have received a copy of the GNU General Public License
  241. --      along with this program;  if not, write to the Free Software
  242. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  243. --
  244. -- LOG
  245. --     $Log: config.h,v $
  246. X * Revision 1.1  1992/01/24  03:29:25  dvadura
  247. X * dmake Version 3.8, Initial revision
  248. X *
  249. */
  250. X
  251. #if defined (_MSC_VER)
  252. # if _MSC_VER < 500
  253. X    Force a compile-time blowup.
  254. X    Do not define define _MSC_VER for MSC compilers ealier than 5.0.
  255. # endif
  256. #endif
  257. X
  258. /* define this for configurations that don't have the coreleft function
  259. X * so that the code compiles.  To my knowledge coreleft exists only on
  260. X * Turbo C, but it is needed here since the function is used in many debug
  261. X * macros. */
  262. #define coreleft() 0L
  263. X
  264. /* MSC Version 4.0 doesn't understand SIGTERM, later versions do. */
  265. #ifndef SIGTERM
  266. #   define SIGTERM SIGINT
  267. #endif
  268. X
  269. /* This should already be defined under C6.0, also for OS/2 we want buffering
  270. X * to minimise the mess during parallel makes.
  271. X */
  272. #ifndef _IOLBF
  273. #   define _IOLBF   _IOFBF
  274. #endif
  275. X
  276. /* in alloc.h: size_t is redefined
  277. X * defined in stdio.h which is included by alloc.h
  278. X */
  279. #if defined(MSDOS) && defined (_MSC_VER)
  280. #   define _TYPES_
  281. #endif
  282. X
  283. /* Don't need this one either */
  284. #define CONST
  285. X
  286. /* in sysintf.c: SIGQUIT is used, this is not defined in MSC */
  287. #ifndef SIGQUIT
  288. #   define SIGQUIT SIGTERM
  289. #endif
  290. X
  291. /* a small problem with pointer to voids on some unix machines needs this */
  292. #define PVOID void *
  293. SHAR_EOF
  294. chmod 0640 dmake/os2/mscdos/config.h ||
  295. echo 'restore of dmake/os2/mscdos/config.h failed'
  296. Wc_c="`wc -c < 'dmake/os2/mscdos/config.h'`"
  297. test 2570 -eq "$Wc_c" ||
  298.     echo 'dmake/os2/mscdos/config.h: original size 2570, current size' "$Wc_c"
  299. rm -f _shar_wnt_.tmp
  300. fi
  301. # ============= dmake/os2/mscdos/config.mk ==============
  302. if test -f 'dmake/os2/mscdos/config.mk' -a X"$1" != X"-c"; then
  303.     echo 'x - skipping dmake/os2/mscdos/config.mk (File already exists)'
  304.     rm -f _shar_wnt_.tmp
  305. else
  306. > _shar_wnt_.tmp
  307. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/config.mk' &&
  308. # This is the MSC 4.0 and higher OS/2 configuration file for DMAKE
  309. #    It simply modifies the values of SRC, and checks to see if
  310. #    OSENVIRONMENT is defined.  If so it includes the appropriate
  311. #    config.mk file.
  312. #
  313. # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
  314. # directory.
  315. #
  316. osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
  317. X
  318. # Definition of macros for library, and C startup code.
  319. X
  320. # The following sources are required for MSC
  321. OSR_SRC = tempnam.c
  322. .SETDIR=$(osrdir) : $(OSR_SRC)
  323. X
  324. SRC += $(OSR_SRC)
  325. .SOURCE.h : $(osrdir)
  326. X
  327. # Local configuration modifications for CFLAGS 
  328. # OS/2 always has at least a 286 so this is enabled by default:
  329. CFLAGS += -G2
  330. X
  331. SET_STACK = /stack:8192
  332. NDB_LDFLAGS += $(SET_STACK)
  333. X
  334. # Microsoft C doesn't need tail but needs head
  335. LDTAIL = $(OS)$(DIRSEPSTR)$(TARGET:b).def;
  336. LDHEAD = $(LDFLAGS)
  337. X
  338. # Debugging libraries
  339. DB_LDFLAGS += /co /li /map $(SET_STACK)
  340. DB_LDLIBS  +=
  341. X
  342. # NO Debug MSC flags:
  343. # Set the environment variable MSC_VER to be one of 4.0, 5.0, 5.1, or 6.0
  344. # to get these by default when you make dmake using 'dmake'.
  345. #
  346. # Setting MSC_VER to one of the above sets the variable _MSC_VER appropriately
  347. # and sets the flags appropriately.
  348. X
  349. .IMPORT .IGNORE : MSC_VER
  350. MSC_VER *= 6.0              # If unset, assume 6.0 by default.
  351. X
  352. .IF $(MSC_VER) == 4.0
  353. X   CFLAGS      += -I$(osrdir) $(C_$(MODEL):s/A/m/)
  354. X   CFLAGS      += -DM_I86=1      # 5.0+ define this automatically
  355. X   CFLAGS      += -D__STDC__=1    # 5.0, 5.1, but not 6.0 do this automatically
  356. X   NDB_CFLAGS  +=
  357. X   DB_CFLAGS   += -Zi
  358. .ELSE
  359. X   DB_CFLAGS   += -Zi
  360. X   CFLAGS      += -I$(osrdir) $(C_$(MODEL))
  361. X   .IF $(MSC_VER) != 6.0
  362. X      # For 5.0 and 5.1, we define _MSC_VER=500 or 510
  363. X      CFLAGS      += -D_MSC_VER=$(MSC_VER:s,.,,)0
  364. X      NDB_CFLAGS  += -Osl -Gs
  365. X   .ELSE
  366. X      # Microsoft C 6.0 auto defines _MSC_VER=600, but not __STDC__
  367. X      CFLAGS      += -D__STDC__=1 # incredibly not auto done by 6.0
  368. X      NDB_CFLAGS  += -Osecgl -Gs
  369. X
  370. X       # Redefine rule for making our objects, we don't need mv
  371. X      %$O : %.c ;% $(CC) -c $(CFLAGS) -Fo$@ $<
  372. X   .END
  373. X   NDB_LDFLAGS += /exe /packc /batch
  374. X   NDB_LDLIBS  += /NOD:LLIBCE LLIBCEP
  375. .END
  376. X
  377. # See if we modify anything in the lower levels.
  378. .IF $(OSENVIRONMENT) != $(NULL)
  379. X   .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
  380. .END
  381. X
  382. C_s =
  383. C_m = -AM
  384. C_c = -AC
  385. C_l = -AL
  386. X
  387. S_s = -Dmsmall
  388. S_m = -Dmmedium
  389. S_c = -Dmcompact
  390. S_l = -Dmlarge
  391. SHAR_EOF
  392. chmod 0640 dmake/os2/mscdos/config.mk ||
  393. echo 'restore of dmake/os2/mscdos/config.mk failed'
  394. Wc_c="`wc -c < 'dmake/os2/mscdos/config.mk'`"
  395. test 2395 -eq "$Wc_c" ||
  396.     echo 'dmake/os2/mscdos/config.mk: original size 2395, current size' "$Wc_c"
  397. rm -f _shar_wnt_.tmp
  398. fi
  399. # ============= dmake/os2/mscdos/dmake.ini ==============
  400. if test -f 'dmake/os2/mscdos/dmake.ini' -a X"$1" != X"-c"; then
  401.     echo 'x - skipping dmake/os2/mscdos/dmake.ini (File already exists)'
  402.     rm -f _shar_wnt_.tmp
  403. else
  404. > _shar_wnt_.tmp
  405. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/dmake.ini' &&
  406. # MSDOS DMAKE startup file.  Customize to suit your needs.
  407. # Assumes MKS toolkit for the tool commands, and Microsoft C.  Change as req'd.
  408. # See the documentation for a description of internally defined macros.
  409. #
  410. # Disable warnings for macros redefined here that were given
  411. # on the command line.
  412. __.SILENT := $(.SILENT)
  413. .SILENT   := yes
  414. X
  415. # Configuration parameters for DMAKE startup.mk file
  416. # Set these to NON-NULL if you wish to turn the parameter on.
  417. _HAVE_RCS    := yes        # yes => RCS  is installed.
  418. _HAVE_SCCS    :=         # yes => SCCS is installed.
  419. X
  420. # Applicable suffix definitions
  421. A := .lib    # Libraries
  422. E := .exe    # Executables
  423. F := .for    # Fortran
  424. O := .obj    # Objects
  425. P := .pas    # Pascal
  426. S := .asm    # Assembler sources
  427. V :=         # RCS suffix
  428. X
  429. # See if these are defined
  430. TMPDIR := $(ROOTDIR)/tmp
  431. .IMPORT .IGNORE : TMPDIR SHELL COMSPEC
  432. X
  433. # Recipe execution configurations
  434. # First set SHELL, If it is not defined, use COMSPEC, otherwise
  435. # it is assumed to be MKS Korn SHELL.
  436. .IF $(SHELL) == $(NULL)
  437. .IF $(COMSPEC) == $(NULL)
  438. X   SHELL := $(ROOTDIR)/bin/sh$E
  439. .ELSE
  440. X   SHELL := $(COMSPEC)
  441. .END
  442. .END
  443. GROUPSHELL := $(SHELL)
  444. X
  445. # Now set remaining arguments depending on which SHELL we
  446. # are going to use.  COMSPEC (assumed to be cmd.exe) or
  447. # MKS Korn Shell.
  448. .IF $(SHELL)==$(COMSPEC)
  449. X   SHELLFLAGS  := $(SWITCHAR)c
  450. X   GROUPFLAGS  := $(SHELLFLAGS)
  451. X   SHELLMETAS  := *"?<>|&
  452. X   GROUPSUFFIX := .cmd
  453. X   DIRSEPSTR   := \\
  454. X   DIVFILE      = $(TMPFILE:s,/,\)
  455. .ELSE
  456. X   SHELLFLAGS  := -c
  457. X   GROUPFLAGS  := 
  458. X   SHELLMETAS  := *"?<>|()&][$$\#`'
  459. X   GROUPSUFFIX := .ksh
  460. X   .MKSARGS    := yes
  461. X   DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
  462. X   DIVSEP_shell_yes := \\\
  463. X   DIVSEP_shell_no  := \\
  464. .END
  465. X
  466. # Standard C-language command names and flags
  467. X   CC      := cl        # C-compiler and flags
  468. X   CFLAGS  +=
  469. X
  470. X   AS      := masm        # Assembler and flags
  471. X   ASFLAGS +=
  472. X
  473. X   LD       = link        # Loader and flags
  474. X   LDFLAGS +=
  475. X   LDLIBS   =
  476. X
  477. # Definition of $(MAKE) macro for recursive makes.
  478. X   MAKE = $(MAKECMD) $(MFLAGS)
  479. X
  480. # Language and Parser generation Tools and their flags
  481. X   YACC      := yacc        # standard yacc
  482. X   YFLAGS +=
  483. X   YTAB      := ytab        # yacc output files name stem.
  484. X
  485. X   LEX      := lex        # standard lex
  486. X   LFLAGS +=
  487. X   LEXYY  := lex_yy        # lex output file
  488. X
  489. # Other Compilers, Tools and their flags
  490. X   PC    := any_pc        # pascal compiler
  491. X   RC    := anyf77        # ratfor compiler
  492. X   FC    := anyf77        # fortran compiler
  493. X
  494. X   CO       := co        # check out for RCS
  495. X   COFLAGS += -q
  496. X
  497. X   AR     := ar            # archiver
  498. X   ARFLAGS+= ruv
  499. X
  500. X   RM       := rm        # remove a file command
  501. X   RMFLAGS +=
  502. X
  503. # Implicit generation rules for making inferences.
  504. # We don't provide .yr or .ye rules here.  They're obsolete.
  505. # Rules for making *$O
  506. X   %$O : %.c ; $(CC) $(CFLAGS) -c $<
  507. X   %$O : %$P ; $(PC) $(PFLAGS) -c $<
  508. X   %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
  509. X   %$O : %.cl ; class -c $<
  510. X   %$O : %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
  511. X
  512. # Executables
  513. X   %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
  514. X
  515. # lex and yacc rules
  516. X   %.c : %.y ; $(YACC)  $(YFLAGS) $<; mv $(YTAB).c $@
  517. X   %.c : %.l ; $(LEX)   $(LFLAGS) $<; mv $(LEXYY).c $@
  518. X
  519. # RCS support
  520. .IF $(_HAVE_RCS)
  521. X   % : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V;- $(CO) $(COFLAGS) $@
  522. X   .NOINFER : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V
  523. .END
  524. X
  525. # SCCS support
  526. .IF $(_HAVE_SCCS)
  527. X   % : s.% ; get $<
  528. X   .NOINFER : s.%
  529. .END
  530. X
  531. # Recipe to make archive files.
  532. %$A :
  533. [
  534. X   $(AR) $(ARFLAGS) $@ $?
  535. X   $(RM) $(RMFLAGS) $?
  536. ]
  537. X
  538. # DMAKE uses this recipe to remove intermediate targets
  539. .REMOVE :; $(RM) -f $<
  540. X
  541. # AUGMAKE extensions for SYSV compatibility
  542. @B = $(@:b)
  543. @D = $(@:d)
  544. @F = $(@:f)
  545. "*B" = $(*:b)
  546. "*D" = $(*:d)
  547. "*F" = $(*:f)
  548. <B = $(<:b)
  549. <D = $(<:d)
  550. <F = $(<:f)
  551. ?B = $(?:b)
  552. ?F = $(?:f)
  553. ?D = $(?:d)
  554. X
  555. # Turn warnings back to previous setting.
  556. .SILENT := $(__.SILENT)
  557. X
  558. # Local init file if any, gets parsed before user makefile
  559. .INCLUDE .IGNORE: "_startup.mk"
  560. SHAR_EOF
  561. chmod 0640 dmake/os2/mscdos/dmake.ini ||
  562. echo 'restore of dmake/os2/mscdos/dmake.ini failed'
  563. Wc_c="`wc -c < 'dmake/os2/mscdos/dmake.ini'`"
  564. test 3826 -eq "$Wc_c" ||
  565.     echo 'dmake/os2/mscdos/dmake.ini: original size 3826, current size' "$Wc_c"
  566. rm -f _shar_wnt_.tmp
  567. fi
  568. # ============= dmake/os2/mscdos/lib.rsp ==============
  569. if test -f 'dmake/os2/mscdos/lib.rsp' -a X"$1" != X"-c"; then
  570.     echo 'x - skipping dmake/os2/mscdos/lib.rsp (File already exists)'
  571.     rm -f _shar_wnt_.tmp
  572. else
  573. > _shar_wnt_.tmp
  574. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/lib.rsp' &&
  575. \NOD:LLIBCE+
  576. LLIBCEP
  577. SHAR_EOF
  578. chmod 0640 dmake/os2/mscdos/lib.rsp ||
  579. echo 'restore of dmake/os2/mscdos/lib.rsp failed'
  580. Wc_c="`wc -c < 'dmake/os2/mscdos/lib.rsp'`"
  581. test 21 -eq "$Wc_c" ||
  582.     echo 'dmake/os2/mscdos/lib.rsp: original size 21, current size' "$Wc_c"
  583. rm -f _shar_wnt_.tmp
  584. fi
  585. # ============= dmake/os2/mscdos/mk40.cmd ==============
  586. if test -f 'dmake/os2/mscdos/mk40.cmd' -a X"$1" != X"-c"; then
  587.     echo 'x - skipping dmake/os2/mscdos/mk40.cmd (File already exists)'
  588.     rm -f _shar_wnt_.tmp
  589. else
  590. > _shar_wnt_.tmp
  591. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/mk40.cmd' &&
  592. md objects
  593. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  infer.c
  594. copy infer.obj objects
  595. del infer.obj
  596. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  make.c
  597. copy make.obj objects
  598. del make.obj
  599. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  stat.c
  600. copy stat.obj objects
  601. del stat.obj
  602. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  expand.c
  603. copy expand.obj objects
  604. del expand.obj
  605. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  dmstring.c
  606. copy dmstring.obj objects
  607. del dmstring.obj
  608. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  hash.c
  609. copy hash.obj objects
  610. del hash.obj
  611. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  dag.c
  612. copy dag.obj objects
  613. del dag.obj
  614. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  dmake.c
  615. copy dmake.obj objects
  616. del dmake.obj
  617. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  path.c
  618. copy path.obj objects
  619. del path.obj
  620. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  imacs.c
  621. copy imacs.obj objects
  622. del imacs.obj
  623. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  sysintf.c
  624. copy sysintf.obj objects
  625. del sysintf.obj
  626. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  parse.c
  627. copy parse.obj objects
  628. del parse.obj
  629. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  getinp.c
  630. copy getinp.obj objects
  631. del getinp.obj
  632. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  quit.c
  633. copy quit.obj objects
  634. del quit.obj
  635. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  state.c
  636. copy state.obj objects
  637. del state.obj
  638. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  basename.c
  639. copy basename.obj objects
  640. del basename.obj
  641. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  dmdump.c
  642. copy dmdump.obj objects
  643. del dmdump.obj
  644. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  macparse.c
  645. copy macparse.obj objects
  646. del macparse.obj
  647. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  rulparse.c
  648. copy rulparse.obj objects
  649. del rulparse.obj
  650. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  percent.c
  651. copy percent.obj objects
  652. del percent.obj
  653. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  function.c
  654. copy function.obj objects
  655. del function.obj
  656. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  os2\ruletab.c
  657. copy ruletab.obj objects
  658. del ruletab.obj
  659. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  os2\runargv.c
  660. copy runargv.obj objects
  661. del runargv.obj
  662. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  os2\_chdir.c
  663. copy _chdir.obj objects
  664. del _chdir.obj
  665. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  os2\switchar.c
  666. copy switchar.obj objects
  667. del switchar.obj
  668. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  msdos\dirbrk.c
  669. copy dirbrk.obj objects
  670. del dirbrk.obj
  671. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  msdos\arlib.c
  672. copy arlib.obj objects
  673. del arlib.obj
  674. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  unix\rmprq.c
  675. copy rmprq.obj objects
  676. del rmprq.obj
  677. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -mL -DM_I86=1 -D__STDC__=1  os2\mscdos\tempnam.c
  678. copy tempnam.obj objects
  679. del tempnam.obj
  680. copy os2\mscdos\startup.mk startup.mk
  681. link /stack:8192 @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,,os2\dmake.def;
  682. SHAR_EOF
  683. chmod 0640 dmake/os2/mscdos/mk40.cmd ||
  684. echo 'restore of dmake/os2/mscdos/mk40.cmd failed'
  685. Wc_c="`wc -c < 'dmake/os2/mscdos/mk40.cmd'`"
  686. test 3490 -eq "$Wc_c" ||
  687.     echo 'dmake/os2/mscdos/mk40.cmd: original size 3490, current size' "$Wc_c"
  688. rm -f _shar_wnt_.tmp
  689. fi
  690. # ============= dmake/os2/mscdos/mk50.cmd ==============
  691. if test -f 'dmake/os2/mscdos/mk50.cmd' -a X"$1" != X"-c"; then
  692.     echo 'x - skipping dmake/os2/mscdos/mk50.cmd (File already exists)'
  693.     rm -f _shar_wnt_.tmp
  694. else
  695. > _shar_wnt_.tmp
  696. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/mk50.cmd' &&
  697. md objects
  698. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs infer.c
  699. copy infer.obj objects
  700. del infer.obj
  701. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs make.c
  702. copy make.obj objects
  703. del make.obj
  704. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs stat.c
  705. copy stat.obj objects
  706. del stat.obj
  707. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs expand.c
  708. copy expand.obj objects
  709. del expand.obj
  710. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs dmstring.c
  711. copy dmstring.obj objects
  712. del dmstring.obj
  713. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs hash.c
  714. copy hash.obj objects
  715. del hash.obj
  716. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs dag.c
  717. copy dag.obj objects
  718. del dag.obj
  719. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs dmake.c
  720. copy dmake.obj objects
  721. del dmake.obj
  722. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs path.c
  723. copy path.obj objects
  724. del path.obj
  725. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs imacs.c
  726. copy imacs.obj objects
  727. del imacs.obj
  728. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs sysintf.c
  729. copy sysintf.obj objects
  730. del sysintf.obj
  731. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs parse.c
  732. copy parse.obj objects
  733. del parse.obj
  734. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs getinp.c
  735. copy getinp.obj objects
  736. del getinp.obj
  737. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs quit.c
  738. copy quit.obj objects
  739. del quit.obj
  740. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs state.c
  741. copy state.obj objects
  742. del state.obj
  743. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs basename.c
  744. copy basename.obj objects
  745. del basename.obj
  746. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs dmdump.c
  747. copy dmdump.obj objects
  748. del dmdump.obj
  749. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs macparse.c
  750. copy macparse.obj objects
  751. del macparse.obj
  752. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs rulparse.c
  753. copy rulparse.obj objects
  754. del rulparse.obj
  755. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs percent.c
  756. copy percent.obj objects
  757. del percent.obj
  758. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs function.c
  759. copy function.obj objects
  760. del function.obj
  761. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs os2\ruletab.c
  762. copy ruletab.obj objects
  763. del ruletab.obj
  764. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs os2\runargv.c
  765. copy runargv.obj objects
  766. del runargv.obj
  767. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs os2\_chdir.c
  768. copy _chdir.obj objects
  769. del _chdir.obj
  770. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs os2\switchar.c
  771. copy switchar.obj objects
  772. del switchar.obj
  773. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs msdos\dirbrk.c
  774. copy dirbrk.obj objects
  775. del dirbrk.obj
  776. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs msdos\arlib.c
  777. copy arlib.obj objects
  778. del arlib.obj
  779. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs unix\rmprq.c
  780. copy rmprq.obj objects
  781. del rmprq.obj
  782. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=500 -Osl -Gs os2\mscdos\tempnam.c
  783. copy tempnam.obj objects
  784. del tempnam.obj
  785. copy os2\mscdos\startup.mk startup.mk
  786. link /stack:8192 /exe /packc /batch @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,,os2\dmake.def;
  787. SHAR_EOF
  788. chmod 0640 dmake/os2/mscdos/mk50.cmd ||
  789. echo 'restore of dmake/os2/mscdos/mk50.cmd failed'
  790. Wc_c="`wc -c < 'dmake/os2/mscdos/mk50.cmd'`"
  791. test 3509 -eq "$Wc_c" ||
  792.     echo 'dmake/os2/mscdos/mk50.cmd: original size 3509, current size' "$Wc_c"
  793. rm -f _shar_wnt_.tmp
  794. fi
  795. # ============= dmake/os2/mscdos/mk51.cmd ==============
  796. if test -f 'dmake/os2/mscdos/mk51.cmd' -a X"$1" != X"-c"; then
  797.     echo 'x - skipping dmake/os2/mscdos/mk51.cmd (File already exists)'
  798.     rm -f _shar_wnt_.tmp
  799. else
  800. > _shar_wnt_.tmp
  801. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/mk51.cmd' &&
  802. md objects
  803. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs infer.c
  804. copy infer.obj objects
  805. del infer.obj
  806. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs make.c
  807. copy make.obj objects
  808. del make.obj
  809. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs stat.c
  810. copy stat.obj objects
  811. del stat.obj
  812. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs expand.c
  813. copy expand.obj objects
  814. del expand.obj
  815. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs dmstring.c
  816. copy dmstring.obj objects
  817. del dmstring.obj
  818. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs hash.c
  819. copy hash.obj objects
  820. del hash.obj
  821. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs dag.c
  822. copy dag.obj objects
  823. del dag.obj
  824. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs dmake.c
  825. copy dmake.obj objects
  826. del dmake.obj
  827. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs path.c
  828. copy path.obj objects
  829. del path.obj
  830. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs imacs.c
  831. copy imacs.obj objects
  832. del imacs.obj
  833. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs sysintf.c
  834. copy sysintf.obj objects
  835. del sysintf.obj
  836. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs parse.c
  837. copy parse.obj objects
  838. del parse.obj
  839. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs getinp.c
  840. copy getinp.obj objects
  841. del getinp.obj
  842. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs quit.c
  843. copy quit.obj objects
  844. del quit.obj
  845. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs state.c
  846. copy state.obj objects
  847. del state.obj
  848. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs basename.c
  849. copy basename.obj objects
  850. del basename.obj
  851. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs dmdump.c
  852. copy dmdump.obj objects
  853. del dmdump.obj
  854. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs macparse.c
  855. copy macparse.obj objects
  856. del macparse.obj
  857. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs rulparse.c
  858. copy rulparse.obj objects
  859. del rulparse.obj
  860. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs percent.c
  861. copy percent.obj objects
  862. del percent.obj
  863. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs function.c
  864. copy function.obj objects
  865. del function.obj
  866. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs os2\ruletab.c
  867. copy ruletab.obj objects
  868. del ruletab.obj
  869. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs os2\runargv.c
  870. copy runargv.obj objects
  871. del runargv.obj
  872. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs os2\_chdir.c
  873. copy _chdir.obj objects
  874. del _chdir.obj
  875. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs os2\switchar.c
  876. copy switchar.obj objects
  877. del switchar.obj
  878. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs msdos\dirbrk.c
  879. copy dirbrk.obj objects
  880. del dirbrk.obj
  881. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs msdos\arlib.c
  882. copy arlib.obj objects
  883. del arlib.obj
  884. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs unix\rmprq.c
  885. copy rmprq.obj objects
  886. del rmprq.obj
  887. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D_MSC_VER=510 -Osl -Gs os2\mscdos\tempnam.c
  888. copy tempnam.obj objects
  889. del tempnam.obj
  890. copy os2\mscdos\startup.mk startup.mk
  891. link /stack:8192 /exe /packc /batch @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,,os2\dmake.def;
  892. SHAR_EOF
  893. chmod 0640 dmake/os2/mscdos/mk51.cmd ||
  894. echo 'restore of dmake/os2/mscdos/mk51.cmd failed'
  895. Wc_c="`wc -c < 'dmake/os2/mscdos/mk51.cmd'`"
  896. test 3509 -eq "$Wc_c" ||
  897.     echo 'dmake/os2/mscdos/mk51.cmd: original size 3509, current size' "$Wc_c"
  898. rm -f _shar_wnt_.tmp
  899. fi
  900. # ============= dmake/os2/mscdos/mk60.cmd ==============
  901. if test -f 'dmake/os2/mscdos/mk60.cmd' -a X"$1" != X"-c"; then
  902.     echo 'x - skipping dmake/os2/mscdos/mk60.cmd (File already exists)'
  903.     rm -f _shar_wnt_.tmp
  904. else
  905. > _shar_wnt_.tmp
  906. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/mk60.cmd' &&
  907. md objects
  908. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\infer.obj infer.c
  909. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\make.obj make.c
  910. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\stat.obj stat.c
  911. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\expand.obj expand.c
  912. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\dmstring.obj dmstring.c
  913. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\hash.obj hash.c
  914. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\dag.obj dag.c
  915. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\dmake.obj dmake.c
  916. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\path.obj path.c
  917. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\imacs.obj imacs.c
  918. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\sysintf.obj sysintf.c
  919. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\parse.obj parse.c
  920. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\getinp.obj getinp.c
  921. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\quit.obj quit.c
  922. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\state.obj state.c
  923. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\basename.obj basename.c
  924. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\dmdump.obj dmdump.c
  925. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\macparse.obj macparse.c
  926. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\rulparse.obj rulparse.c
  927. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\percent.obj percent.c
  928. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\function.obj function.c
  929. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\ruletab.obj os2\ruletab.c
  930. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\runargv.obj os2\runargv.c
  931. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\_chdir.obj os2\_chdir.c
  932. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\switchar.obj os2\switchar.c
  933. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\dirbrk.obj msdos\dirbrk.c
  934. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\arlib.obj msdos\arlib.c
  935. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\rmprq.obj unix\rmprq.c
  936. cl -c -I. -Ios2 -DOS2 -G2 -Ios2\mscdos -AL -D__STDC__=1 -Osecgl -Gs -Foobjects\tempnam.obj os2\mscdos\tempnam.c
  937. copy os2\mscdos\startup.mk startup.mk
  938. link /stack:8192 /exe /packc /batch @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,,os2\dmake.def;
  939. SHAR_EOF
  940. chmod 0640 dmake/os2/mscdos/mk60.cmd ||
  941. echo 'restore of dmake/os2/mscdos/mk60.cmd failed'
  942. Wc_c="`wc -c < 'dmake/os2/mscdos/mk60.cmd'`"
  943. test 3048 -eq "$Wc_c" ||
  944.     echo 'dmake/os2/mscdos/mk60.cmd: original size 3048, current size' "$Wc_c"
  945. rm -f _shar_wnt_.tmp
  946. fi
  947. # ============= dmake/os2/mscdos/obj.rsp ==============
  948. if test -f 'dmake/os2/mscdos/obj.rsp' -a X"$1" != X"-c"; then
  949.     echo 'x - skipping dmake/os2/mscdos/obj.rsp (File already exists)'
  950.     rm -f _shar_wnt_.tmp
  951. else
  952. > _shar_wnt_.tmp
  953. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/obj.rsp' &&
  954. objects\infer.obj+
  955. objects\make.obj+
  956. objects\stat.obj+
  957. objects\expand.obj+
  958. objects\dmstring.obj+
  959. objects\hash.obj+
  960. objects\dag.obj+
  961. objects\dmake.obj+
  962. objects\path.obj+
  963. objects\imacs.obj+
  964. objects\sysintf.obj+
  965. objects\parse.obj+
  966. objects\getinp.obj+
  967. objects\quit.obj+
  968. objects\state.obj+
  969. objects\basename.obj+
  970. objects\dmdump.obj+
  971. objects\macparse.obj+
  972. objects\rulparse.obj+
  973. objects\percent.obj+
  974. objects\function.obj+
  975. objects\ruletab.obj+
  976. objects\runargv.obj+
  977. objects\_chdir.obj+
  978. objects\switchar.obj+
  979. objects\dirbrk.obj+
  980. objects\arlib.obj+
  981. objects\rmprq.obj+
  982. objects\tempnam.obj
  983. SHAR_EOF
  984. chmod 0640 dmake/os2/mscdos/obj.rsp ||
  985. echo 'restore of dmake/os2/mscdos/obj.rsp failed'
  986. Wc_c="`wc -c < 'dmake/os2/mscdos/obj.rsp'`"
  987. test 576 -eq "$Wc_c" ||
  988.     echo 'dmake/os2/mscdos/obj.rsp: original size 576, current size' "$Wc_c"
  989. rm -f _shar_wnt_.tmp
  990. fi
  991. # ============= dmake/os2/mscdos/optoff.h ==============
  992. if test -f 'dmake/os2/mscdos/optoff.h' -a X"$1" != X"-c"; then
  993.     echo 'x - skipping dmake/os2/mscdos/optoff.h (File already exists)'
  994.     rm -f _shar_wnt_.tmp
  995. else
  996. > _shar_wnt_.tmp
  997. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/optoff.h' &&
  998. #if _MSC_VER < 600
  999. # pragma loop_opt(off)
  1000. #endif
  1001. SHAR_EOF
  1002. chmod 0640 dmake/os2/mscdos/optoff.h ||
  1003. echo 'restore of dmake/os2/mscdos/optoff.h failed'
  1004. Wc_c="`wc -c < 'dmake/os2/mscdos/optoff.h'`"
  1005. test 49 -eq "$Wc_c" ||
  1006.     echo 'dmake/os2/mscdos/optoff.h: original size 49, current size' "$Wc_c"
  1007. rm -f _shar_wnt_.tmp
  1008. fi
  1009. # ============= dmake/os2/mscdos/public.h ==============
  1010. if test -f 'dmake/os2/mscdos/public.h' -a X"$1" != X"-c"; then
  1011.     echo 'x - skipping dmake/os2/mscdos/public.h (File already exists)'
  1012.     rm -f _shar_wnt_.tmp
  1013. else
  1014. > _shar_wnt_.tmp
  1015. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/public.h' &&
  1016. /* RCS      -- $Header$
  1017. -- WARNING  -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
  1018. --
  1019. -- SYNOPSIS -- Local functions exported to be visible by others.
  1020. --
  1021. -- DESCRIPTION
  1022. --      This file is generated by 'genpub'.  Function declarations
  1023. --      that appear in this file are extracted by 'genpub' from
  1024. --      source files.  Any function in the source file whose definition
  1025. --      appears like:
  1026. --
  1027. --          PUBLIC return_type
  1028. --          function( arg_list );
  1029. --          type_expr1 arg1;
  1030. --          ...
  1031. --
  1032. --      has its definition extracted and a line of the form:
  1033. --
  1034. --          return_type function ANSI((type_expr1,type_expr2,...));
  1035. --
  1036. --      entered into the output file.
  1037. --
  1038. -- AUTHOR
  1039. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  1040. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  1041. --
  1042. -- COPYRIGHT
  1043. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  1044. -- 
  1045. --      This program is free software; you can redistribute it and/or
  1046. --      modify it under the terms of the GNU General Public License
  1047. --      (version 1), as published by the Free Software Foundation, and
  1048. --      found in the file 'LICENSE' included with this distribution.
  1049. -- 
  1050. --      This program is distributed in the hope that it will be useful,
  1051. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  1052. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1053. --      GNU General Public License for more details.
  1054. -- 
  1055. --      You should have received a copy of the GNU General Public License
  1056. --      along with this program;  if not, write to the Free Software
  1057. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1058. --
  1059. -- LOG
  1060. --     $Log$
  1061. */
  1062. X
  1063. #ifndef _DMAKE_PUBLIC_h
  1064. #define _DMAKE_PUBLIC_h
  1065. X
  1066. void Infer_recipe ANSI((CELLPTR, CELLPTR));
  1067. int Make_targets ANSI(());
  1068. int Exec_commands ANSI((CELLPTR));
  1069. void Print_cmnd ANSI((char *, int, int));
  1070. void Pop_dir ANSI((int));
  1071. void Append_line ANSI((char *, int, FILE *, char *, int, int));
  1072. void Stat_target ANSI((CELLPTR, int));
  1073. char * Expand ANSI((char *));
  1074. char * Apply_edit ANSI((char *, char *, char *, int, int));
  1075. void Map_esc ANSI((char *));
  1076. char* Apply_modifiers ANSI((int, char *));
  1077. char* Tokenize ANSI((char *, char *));
  1078. char * _strjoin ANSI((char *, char *, int, int));
  1079. char * _stradd ANSI((char *, char *, int));
  1080. char * _strapp ANSI((char *, char *));
  1081. char * _strdup ANSI((char *));
  1082. char * _strdup2 ANSI((char *));
  1083. char * _strpbrk ANSI((char *, char *));
  1084. char * _strspn ANSI((char *, char *));
  1085. char * _strstr ANSI((char *, char *));
  1086. char * _substr ANSI((char *, char *));
  1087. uint16 Hash ANSI((char *, uint32 *));
  1088. HASHPTR Get_name ANSI((char *, HASHPTR *, int));
  1089. HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
  1090. HASHPTR Def_macro ANSI((char *, char *, int));
  1091. CELLPTR Def_cell ANSI((char *));
  1092. LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
  1093. void Clear_prerequisites ANSI((CELLPTR));
  1094. int Test_circle ANSI((CELLPTR, int));
  1095. STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
  1096. t_attr Rcp_attribute ANSI((char *));
  1097. int main ANSI((int, char **));
  1098. FILE * Openfile ANSI((char *, int, int));
  1099. FILE * Closefile ANSI(());
  1100. FILE * Search_file ANSI((char *, char **));
  1101. char * Filename ANSI(());
  1102. int Nestlevel ANSI(());
  1103. void No_ram ANSI(());
  1104. int Usage ANSI((int));
  1105. int Version ANSI(());
  1106. char * Get_suffix ANSI((char *));
  1107. char * Build_path ANSI((char *, char *));
  1108. void Make_rules ANSI(());
  1109. void Create_macro_vars ANSI(());
  1110. time_t Do_stat ANSI((char *, char *, char **));
  1111. int Do_touch ANSI((char *, char *, char **));
  1112. void Void_lib_cache ANSI((char *, char *));
  1113. time_t Do_time ANSI(());
  1114. int Do_cmnd ANSI((char *, int, int, CELLPTR, int, int, int));
  1115. char ** Pack_argv ANSI((int, int, char *));
  1116. char * Read_env_string ANSI((char *));
  1117. int Write_env_string ANSI((char *, char *));
  1118. void ReadEnvironment ANSI(());
  1119. void Catch_signals ANSI((void (*)()));
  1120. void Clear_signals ANSI(());
  1121. void Prolog ANSI((int, char* []));
  1122. void Epilog ANSI((int));
  1123. char * Get_current_dir ANSI(());
  1124. int Set_dir ANSI((char*));
  1125. char Get_switch_char ANSI(());
  1126. FILE* Get_temp ANSI((char **, char *, int));
  1127. FILE * Start_temp ANSI((char *, CELLPTR, char **));
  1128. void Open_temp_error ANSI((char *, char *));
  1129. void Link_temp ANSI((CELLPTR, FILE *, char *));
  1130. void Close_temp ANSI((CELLPTR, FILE *));
  1131. void Unlink_temp_files ANSI((CELLPTR));
  1132. void Handle_result ANSI((int, int, int, CELLPTR));
  1133. void Update_time_stamp ANSI((CELLPTR));
  1134. int Remove_file ANSI((char *));
  1135. void Parse ANSI((FILE *));
  1136. int Get_line ANSI((char *, FILE *));
  1137. char * Do_comment ANSI((char *, char **, int));
  1138. char * Get_token ANSI((TKSTRPTR, char *, int));
  1139. void Quit ANSI(());
  1140. void Read_state ANSI(());
  1141. void Write_state ANSI(());
  1142. int Check_state ANSI((CELLPTR, STRINGPTR *, int));
  1143. char* basename ANSI((char *));
  1144. void Dump ANSI(());
  1145. void Dump_recipe ANSI((STRINGPTR));
  1146. int Parse_macro ANSI((char *, int));
  1147. int Macro_op ANSI((char *));
  1148. int Parse_rule_def ANSI((int *));
  1149. int Rule_op ANSI((char *));
  1150. void Add_recipe_to_list ANSI((char *, int, int));
  1151. void Bind_rules_to_targets ANSI((int));
  1152. int Set_group_attributes ANSI((char *));
  1153. DFALINKPTR Match_dfa ANSI((char *));
  1154. void Check_circle_dfa ANSI(());
  1155. void Add_nfa ANSI((char *));
  1156. char * Exec_function ANSI((char *));
  1157. int runargv ANSI((CELLPTR, int, int, int, int, char *));
  1158. void SetSessionTitle ANSI(());
  1159. int Wait_for_child ANSI((int, int));
  1160. void Clean_up_processes ANSI(());
  1161. int _chdir ANSI((char *));
  1162. int If_root_path ANSI((char *));
  1163. time_t seek_arch ANSI((char*, char*));
  1164. int touch_arch ANSI((char*, char*));
  1165. void Remove_prq ANSI((CELLPTR));
  1166. X
  1167. #endif
  1168. SHAR_EOF
  1169. chmod 0640 dmake/os2/mscdos/public.h ||
  1170. echo 'restore of dmake/os2/mscdos/public.h failed'
  1171. Wc_c="`wc -c < 'dmake/os2/mscdos/public.h'`"
  1172. test 5541 -eq "$Wc_c" ||
  1173.     echo 'dmake/os2/mscdos/public.h: original size 5541, current size' "$Wc_c"
  1174. rm -f _shar_wnt_.tmp
  1175. fi
  1176. # ============= dmake/os2/mscdos/startup.mk ==============
  1177. if test -f 'dmake/os2/mscdos/startup.mk' -a X"$1" != X"-c"; then
  1178.     echo 'x - skipping dmake/os2/mscdos/startup.mk (File already exists)'
  1179.     rm -f _shar_wnt_.tmp
  1180. else
  1181. > _shar_wnt_.tmp
  1182. sed 's/^X//' << 'SHAR_EOF' > 'dmake/os2/mscdos/startup.mk' &&
  1183. #NOTE:  startup.mk file is called dmake.ini for OS/2
  1184. SHAR_EOF
  1185. true || echo 'restore of dmake/os2/mscdos/startup.mk failed'
  1186. fi
  1187. echo 'End of part 28, continue with part 29'
  1188. echo 29 > _shar_seq_.tmp
  1189. exit 0
  1190. exit 0 # Just in case...
  1191.